#ifndef RTC_H
#define RTC_H

#include "stm32f10x.h"

typedef struct {
	uint8_t sec;
	uint8_t min;
	uint8_t hour;
	uint8_t	day_of_month;
	uint8_t month;
	uint8_t year;
} time;

void RTC_Init(void);
uint32_t RTC_GetTime(void);
void RTC_SetTime(uint32_t seconds);

#endif
